//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.ComponentModel;
			using System.Data.Common;
			using System.Data;
			using System.Data.SqlClient;
			using System.Drawing;
			using System;
			using System.Resources;
			using System.Windows.Forms;
			using Utility;
			
		#endregion
		
	public class frmXoaBenhAnh : Form
	
	{
		
		#region Fields
			private Button btDeletePatient;
			private Button btTim;
			private Button btXoa;
			private Button button1;
			private ComboBox cboPatient;
			private Container components;
			private SqlConnection con;
			private string Cons;
			private Database_Com db;
			private DataGrid dgAll;
			private DataGrid dgBenhNhan;
			private DataGrid dgXoaBA;
			public int flag;
			private GroupBox groupBox2;
			private int indexPatient;
			private string key;
			private string keyPatient;
			private Label label14;
			private Label label15;
			private Label label2;
			private RadioButton rbAll;
			private RadioButton rbFullName;
			private RadioButton rbID;
			private string sqlSelect;
			private DataGridTableStyle TblStyle;
			private DataGridTableStyle TblStyleBenhNhan;
			private TextBox txtID;
		#endregion
		
		#region Constructors
		
			public frmXoaBenhAnh ()
			
			{
				this.components = ((System.ComponentModel.Container) null);
				this.db = new Database_Com ();
				this.flag = 1;
				this.InitializeComponent ();
				this.Cons = Connection.ConnectionString ();
				return;
			}
			
		#endregion
		
		#region Methods
		
			private void btDeletePatient_Click (object sender, EventArgs e)
			
			{
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				int i;
				string theString;
				string theString2;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				DataTable theDataTable;
				Exception theException;
				string[] theStringArray;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				if (this.txtID.Text != "")
				{
					goto L_003C;
				}
				if (this.rbAll.Checked)
				{
					goto L_003C;
				}
				DialogResult theDialogResult = MessageBox.Show ("Ch?a nh?p t? kh?a", "L?i Nh?p", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_054A;
				
			L_003C:
				
				{
				}
				this.indexPatient = 0;
				SqlConnection theSqlConnection = this.db.CreateConnections ();
				if (! this.rbFullName.Checked)
				{
					goto L_00D4;
				}
				this.dgBenhNhan.Visible = true;
				this.indexPatient = this.cboPatient.FindString (this.dgXoaBA[this.dgXoaBA.CurrentRowIndex, 0].ToString ());
				this.cboPatient.SelectedIndex = this.indexPatient;
				this.keyPatient = this.dgBenhNhan[this.dgBenhNhan.CurrentRowIndex, 1].ToString ();
				this.dgBenhNhan.Visible = false;
				
			L_00D4:
				
				{
				}
				if (! this.rbID.Checked)
				{
					goto L_00F2;
				}
				this.keyPatient = this.txtID.Text;
				
			L_00F2:
				
				{
				}
				if (! this.rbAll.Checked)
				{
					goto L_0177;
				}
				this.indexPatient = this.cboPatient.FindString (this.dgAll[this.dgAll.CurrentRowIndex, 0].ToString ());
				this.cboPatient.SelectedIndex = this.indexPatient;
				this.dgBenhNhan.Visible = true;
				this.keyPatient = this.dgBenhNhan[this.dgBenhNhan.CurrentRowIndex, 1].ToString ();
				this.dgBenhNhan.Visible = false;
				
			L_0177:
				
				{
				}
				theSqlDataAdapter = new SqlDataAdapter ("SELECT * FROM Patients", this.Cons);
				theDataSet = new DataSet ();
				int i2 = theSqlDataAdapter.Fill (theDataSet, "Patients");
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables[0].Rows.Count != 0)))
				{
					goto L_01CE;
				}
				
			L_01C3:
				
				{
				}
				base.Close ();
				goto L_054A;
				
			L_01CE:
				
				{
				}
				i = ((int) this.db.ExecuteScalar (string.Concat ("Select dbo.fn_Payment_Check(", this.keyPatient, ")")));
				if (i != 0)
				{
					goto L_0264;
				}
				if (! this.rbAll.Checked)
				{
					goto L_0224;
				}
				theString = this.dgAll[this.dgAll.CurrentRowIndex, 2].ToString ();
				goto L_0241;
				
			L_0224:
				
				{
				}
				theString = this.dgXoaBA[this.dgXoaBA.CurrentRowIndex, 2].ToString ();
				
			L_0241:
				
				{
				}
				DialogResult theDialogResult2 = MessageBox.Show (string.Concat ("Hi?n t?i b?nh nh?n ", theString, " ch?a thanh to?n ti?n ??y ??. \n N?n ch?a th? x?a t?n b?nh nh?n n?y ???c."), "Th?ng B?o", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				goto L_054A;
				
			L_0264:
				
				{
				}
				if (! this.rbAll.Checked)
				{
					goto L_0291;
				}
				theString2 = this.dgAll[this.dgAll.CurrentRowIndex, 2].ToString ();
				goto L_02AF;
				
			L_0291:
				
				{
				}
				theString2 = this.dgXoaBA[this.dgXoaBA.CurrentRowIndex, 2].ToString ();
				
			L_02AF:
				
				{
				}
				if (MessageBox.Show (string.Concat ("B?n c? mu?n xo? t?n b?nh nh?n ", theString2, " c?ng v?i t?t c? c?c h? s? b?nh ?n c?a b?nh nh?n n?y kh?ng ?"), "Xo? B?nh ?n", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
				{
					goto L_054A;
				}
				
			L_02D3:
				try
				{
					SqlConnection theSqlConnection2 = this.db.CreateConnections ();
					theStringArray = new string[1];
					theStringArray[0] = "@patID";
					theSqlDbTypeArray = new SqlDbType[1];
					theSqlDbTypeArray[0] = SqlDbType.VarChar;
					theObjectArray = new object[1];
					theObjectArray[0] = this.keyPatient;
					this.db.ExecuteStoredProc ("sp_Patients_Delete", theStringArray, theSqlDbTypeArray, theObjectArray);
					DialogResult theDialogResult3 = MessageBox.Show ("B?nh nh?n v? t?t c? h? s? b?nh ?n c?a b?nh nh?n ?? ???c xo?", "Xo?", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					this.loadAllBA ();
					if (! this.rbFullName.Checked)
					{
						goto L_0371;
					}
					this.sqlSelect = string.Concat ("Select * from  vw_ClinicalRecord_Thao Where  patname like N\'%", this.txtID.Text.Trim (), "%\'");
					
				L_0371:
					
					{
					}
					if (! this.rbID.Checked)
					{
						goto L_03A3;
					}
					this.sqlSelect = string.Concat ("select * from vw_ClinicalRecord_Thao where patID=\'", this.txtID.Text.Trim (), "\'");
					
				L_03A3:
					
					{
					}
					if (! this.rbAll.Checked)
					{
						goto L_03E1;
					}
					this.frmXoaBenhAnh_Load (sender, e);
					this.dgXoaBA.Visible = false;
					this.dgAll.Visible = true;
					this.dgBenhNhan.Visible = false;
					goto L_054A;
					
				L_03E1:
					
					{
					}
					this.dgAll.Visible = false;
					this.dgBenhNhan.Visible = false;
					theSqlDataAdapter2 = new SqlDataAdapter (this.sqlSelect, this.con);
					theDataSet2 = new DataSet ();
					int i3 = theSqlDataAdapter2.Fill (theDataSet2, "vw_ClinicalRecord_Thao");
					theDataTable = theDataSet2.Tables["vw_ClinicalRecord_Thao"];
					if ((theDataSet2 != null) && ((theDataSet2.Tables.Count != 0) && (theDataTable.Rows.Count != 0)))
					{
						goto L_04B2;
					}
					
				L_0455:
					
					{
					}
					if (! this.rbID.Checked)
					{
						goto L_0481;
					}
					DialogResult theDialogResult4 = MessageBox.Show ("S? ID kh?ng t?n t?i trong c? s? d? li?u", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
					this.dgXoaBA.Visible = false;
					
				L_0481:
					
					{
					}
					if (! this.rbFullName.Checked)
					{
						goto L_04AD;
					}
					DialogResult theDialogResult5 = MessageBox.Show ("T?n B?nh nh?n kh?ng t?n t?i kh?ng t?n t?i trong c? s? d? li?u", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
					this.dgXoaBA.Visible = false;
					
				L_04AD:
					
					{
					}
					goto L_054A;
					
				L_04B2:
					
					{
					}
					this.dgXoaBA.Visible = true;
					this.btXoa.Visible = true;
					this.dgAll.Visible = false;
					this.dgXoaBA.CaptionText = "Danh S?ch B?nh ?n.";
					this.dgXoaBA.DataSource = theDataSet2;
					this.dgXoaBA.SetDataBinding (theDataSet2, "vw_ClinicalRecord_Thao");
					this.dgXoaBA.TableStyles.Clear ();
					this.loadDatagrid ();
					int i4 = this.dgXoaBA.TableStyles.Add (this.TblStyle);
				}
				catch (Exception theException2)
				{
					
				L_0534:
					theException = theException2;
					DialogResult theDialogResult6 = MessageBox.Show (theException.Message.ToString ());
				}
				
			L_054A:
				return;
			}
			
			private void btThoat_Click (object sender, EventArgs e)
			
			{
				base.Close ();
				return;
			}
			
			private void btXoa_Click (object sender, EventArgs e)
			
			{
				int i;
				string theString;
				int i2;
				string theString2;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				string theString3;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				string theString4;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				DataTable theDataTable;
				Exception theException;
				string[] theStringArray;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				string[] theStringArray2;
				string[] theStringArray3;
				SqlDbType[] theSqlDbTypeArray2;
				object[] theObjectArray2;
				if (this.txtID.Text != "")
				{
					goto L_003C;
				}
				if (this.rbAll.Checked)
				{
					goto L_003C;
				}
				DialogResult theDialogResult = MessageBox.Show ("Ch?a nh?p t? kh?a", "L?i Nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_0810;
				
			L_003C:
				
				{
				}
				this.indexPatient = 0;
				SqlConnection theSqlConnection = this.db.CreateConnections ();
				if (! this.rbFullName.Checked)
				{
					goto L_00D4;
				}
				this.dgBenhNhan.Visible = true;
				this.indexPatient = this.cboPatient.FindString (this.dgXoaBA[this.dgXoaBA.CurrentRowIndex, 0].ToString ());
				this.cboPatient.SelectedIndex = this.indexPatient;
				this.keyPatient = this.dgBenhNhan[this.dgBenhNhan.CurrentRowIndex, 1].ToString ();
				this.dgBenhNhan.Visible = false;
				
			L_00D4:
				
				{
				}
				if (! this.rbID.Checked)
				{
					goto L_00F2;
				}
				this.keyPatient = this.txtID.Text;
				
			L_00F2:
				
				{
				}
				if (! this.rbAll.Checked)
				{
					goto L_019E;
				}
				this.key = this.dgAll[this.dgAll.CurrentRowIndex, 1].ToString ();
				this.indexPatient = this.cboPatient.FindString (this.dgAll[this.dgAll.CurrentRowIndex, 0].ToString ());
				this.cboPatient.SelectedIndex = this.indexPatient;
				this.dgBenhNhan.Visible = true;
				this.keyPatient = this.dgBenhNhan[this.dgBenhNhan.CurrentRowIndex, 1].ToString ();
				this.dgBenhNhan.Visible = false;
				goto L_01C0;
				
			L_019E:
				
				{
				}
				this.key = this.dgXoaBA[this.dgXoaBA.CurrentRowIndex, 1].ToString ();
				
			L_01C0:
				
				{
				}
				i = ((int) this.db.ExecuteScalar (string.Concat ("Select dbo.fn_Payment_Clinical_Check(", this.key, ")")));
				if (i != 0)
				{
					goto L_0256;
				}
				if (! this.rbAll.Checked)
				{
					goto L_0216;
				}
				theString = this.dgAll[this.dgAll.CurrentRowIndex, 2].ToString ();
				goto L_0233;
				
			L_0216:
				
				{
				}
				theString = this.dgXoaBA[this.dgXoaBA.CurrentRowIndex, 2].ToString ();
				
			L_0233:
				
				{
				}
				DialogResult theDialogResult2 = MessageBox.Show (string.Concat ("Hi?n t?i b?nh nh?n ", theString, " ch?a thanh to?n ti?n ??y ?? \n.N?n ch?a th? x?a t?n b?nh nh?n n?y ???c."), "Th?ng B?o", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				goto L_0810;
				
			L_0256:
				
				{
				}
				i2 = ((int) this.db.ExecuteScalar (string.Concat ("select count(clrISN) from vw_ClinicalRecord_Thao where patID = \'", this.keyPatient, "\'")));
				if (i2 != 1)
				{
					goto L_04FB;
				}
				if (! this.rbAll.Checked)
				{
					goto L_02B0;
				}
				theString2 = this.dgAll[this.dgAll.CurrentRowIndex, 2].ToString ();
				goto L_02CD;
				
			L_02B0:
				
				{
				}
				theString2 = this.dgXoaBA[this.dgXoaBA.CurrentRowIndex, 2].ToString ();
				
			L_02CD:
				
				{
				}
				if (MessageBox.Show (string.Concat ("B?n c? mu?n xo? b?nh ?n ", this.key, " n?y kh?ng ? N?u x?a b?nh ?n n?y s? x?a b?nh nh?n ", theString2), "Xo? B?nh ?n", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
				{
					goto L_04F6;
				}
				theStringArray = new string[1];
				theStringArray[0] = "@clrISN";
				theSqlDbTypeArray = new SqlDbType[1];
				theSqlDbTypeArray[0] = SqlDbType.Int;
				theObjectArray = new object[1];
				theObjectArray[0] = this.key;
				this.db.ExecuteStoredProc ("sp_ClinicalPatient_Delete", theStringArray, theSqlDbTypeArray, theObjectArray);
				DialogResult theDialogResult3 = MessageBox.Show ("T?n b?nh nh?n v? B?nh ?n sau c?ng c?a h? ?? ???c xo?", "Xo?", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				theSqlDataAdapter = new SqlDataAdapter ("SELECT * FROM Patients", this.Cons);
				theDataSet = new DataSet ();
				int i3 = theSqlDataAdapter.Fill (theDataSet, "Patients");
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables[0].Rows.Count != 0)))
				{
					goto L_03AD;
				}
				
			L_03A2:
				
				{
				}
				base.Close ();
				goto L_0810;
				
			L_03AD:
				
				{
				}
				this.loadAllBA ();
				theString3 = "select * from Patients";
				theSqlDataAdapter2 = new SqlDataAdapter (theString3, this.con);
				theDataSet2 = new DataSet ();
				int i4 = theSqlDataAdapter2.Fill (theDataSet2, "Patients");
				if ((theDataSet2 != null) && ((theDataSet2.Tables.Count != 0) && (theDataSet2.Tables["Patients"].Rows.Count != 0)))
				{
					goto L_0426;
				}
				
			L_040E:
				
				{
				}
				DialogResult theDialogResult4 = MessageBox.Show ("Hi?n t?i ch?a c? b?nh nh?n", "L?i", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_0810;
				
			L_0426:
				
				{
				}
				this.cboPatient.DataSource = null;
				this.cboPatient.DataSource = theDataSet2;
				this.cboPatient.DisplayMember = "Patients.patISN";
				this.dgBenhNhan.TableStyles.Clear ();
				this.dgBenhNhan.DataSource = null;
				this.dgBenhNhan.DataSource = theDataSet2;
				this.dgBenhNhan.SetDataBinding (theDataSet2, "Patients");
				this.loadDatagridBenhNhan ();
				int i5 = this.dgBenhNhan.TableStyles.Add (this.TblStyleBenhNhan);
				this.dgBenhNhan.Visible = false;
				if (this.rbAll.Checked)
				{
					goto L_04DA;
				}
				this.dgXoaBA.Visible = true;
				this.dgXoaBA.DataSource = null;
				goto L_04E6;
				
			L_04DA:
				
				{
				}
				this.dgAll.Visible = true;
				
			L_04E6:
				
				{
				}
				this.txtID.Text = "";
				
			L_04F6:
				
				{
				}
				goto L_0810;
				
			L_04FB:
				
				{
				}
				if (i2 <= 1)
				{
					goto L_0810;
				}
				if (! this.rbAll.Checked)
				{
					goto L_052F;
				}
				theString4 = this.dgAll[this.dgAll.CurrentRowIndex, 2].ToString ();
				goto L_054D;
				
			L_052F:
				
				{
				}
				theString4 = this.dgXoaBA[this.dgXoaBA.CurrentRowIndex, 2].ToString ();
				
			L_054D:
				
				{
				}
				theStringArray2 = new string[5];
				theStringArray2[0] = "B?n c? mu?n xo? b?nh ?n ";
				theStringArray2[1] = this.key;
				theStringArray2[2] = " c?a b?nh nh?n ";
				theStringArray2[3] = theString4;
				theStringArray2[4] = " n?y kh?ng ?";
				if (MessageBox.Show (string.Concat (theStringArray2), "Xo? B?nh ?n", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
				{
					goto L_0810;
				}
				
			L_059A:
				try
				{
					SqlConnection theSqlConnection2 = this.db.CreateConnections ();
					theStringArray3 = new string[1];
					theStringArray3[0] = "@clrISN";
					theSqlDbTypeArray2 = new SqlDbType[1];
					theSqlDbTypeArray2[0] = SqlDbType.Int;
					theObjectArray2 = new object[1];
					theObjectArray2[0] = this.key;
					this.db.ExecuteStoredProc ("sp_ClinicalRecord_Delete", theStringArray3, theSqlDbTypeArray2, theObjectArray2);
					DialogResult theDialogResult5 = MessageBox.Show ("B?nh ?n ?? ???c xo?", "Xo?", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					this.loadAllBA ();
					if (! this.rbFullName.Checked)
					{
						goto L_0637;
					}
					this.sqlSelect = string.Concat ("Select * from  vw_ClinicalRecord_Thao Where patname like N\'%", this.txtID.Text.Trim (), "%\'");
					
				L_0637:
					
					{
					}
					if (! this.rbID.Checked)
					{
						goto L_0669;
					}
					this.sqlSelect = string.Concat ("select * from vw_ClinicalRecord_Thao where patID=\'", this.txtID.Text.Trim (), "\'");
					
				L_0669:
					
					{
					}
					if (! this.rbAll.Checked)
					{
						goto L_06A7;
					}
					this.frmXoaBenhAnh_Load (sender, e);
					this.dgXoaBA.Visible = false;
					this.dgAll.Visible = true;
					this.dgBenhNhan.Visible = false;
					goto L_0810;
					
				L_06A7:
					
					{
					}
					this.dgAll.Visible = false;
					this.dgBenhNhan.Visible = false;
					theSqlDataAdapter3 = new SqlDataAdapter (this.sqlSelect, this.con);
					theDataSet3 = new DataSet ();
					int i6 = theSqlDataAdapter3.Fill (theDataSet3, "vw_ClinicalRecord_Thao");
					theDataTable = theDataSet3.Tables["vw_ClinicalRecord_Thao"];
					if ((theDataSet3 != null) && ((theDataSet3.Tables.Count != 0) && (theDataTable.Rows.Count != 0)))
					{
						goto L_0778;
					}
					
				L_071B:
					
					{
					}
					if (! this.rbID.Checked)
					{
						goto L_0747;
					}
					DialogResult theDialogResult6 = MessageBox.Show ("S? ID kh?ng t?n t?i trong c? s? d? li?u", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
					this.dgXoaBA.Visible = false;
					
				L_0747:
					
					{
					}
					if (! this.rbFullName.Checked)
					{
						goto L_0773;
					}
					DialogResult theDialogResult7 = MessageBox.Show ("T?n B?nh nh?n kh?ng t?n t?i kh?ng t?n t?i trong c? s? d? li?u", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
					this.dgXoaBA.Visible = false;
					
				L_0773:
					
					{
					}
					goto L_0810;
					
				L_0778:
					
					{
					}
					this.dgXoaBA.Visible = true;
					this.btXoa.Visible = true;
					this.dgAll.Visible = false;
					this.dgXoaBA.CaptionText = "Danh S?ch B?nh ?n.";
					this.dgXoaBA.DataSource = theDataSet3;
					this.dgXoaBA.SetDataBinding (theDataSet3, "vw_ClinicalRecord_Thao");
					this.dgXoaBA.TableStyles.Clear ();
					this.loadDatagrid ();
					int i7 = this.dgXoaBA.TableStyles.Add (this.TblStyle);
				}
				catch (Exception theException2)
				{
					
				L_07FA:
					theException = theException2;
					DialogResult theDialogResult8 = MessageBox.Show (theException.Message.ToString ());
				}
				
			L_0810:
				return;
			}
			
			private void button1_Click (object sender, EventArgs e)
			
			{
				string theString;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				theString = string.Empty;
				this.indexPatient = 0;
				this.btXoa.Visible = false;
				this.dgAll.Visible = false;
				if (this.txtID.Text != "")
				{
					goto L_0061;
				}
				if (this.rbAll.Checked)
				{
					goto L_0061;
				}
				DialogResult theDialogResult = MessageBox.Show ("Ch?a nh?p t? kh?a", "L?i Nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_0245;
				
			L_0061:
				
				{
				}
				if (! this.rbFullName.Checked)
				{
					goto L_008E;
				}
				this.sqlSelect = string.Concat ("Select * from  vw_ClinicalRecord_Thao Where patName like N\'%", this.txtID.Text, "%\'");
				
			L_008E:
				
				{
				}
				if (! this.rbID.Checked)
				{
					goto L_00C0;
				}
				this.sqlSelect = string.Concat ("select * from vw_ClinicalRecord_Thao where patID=\'", this.txtID.Text.Trim (), "\'");
				
			L_00C0:
				
				{
				}
				if (! this.rbAll.Checked)
				{
					goto L_010A;
				}
				this.frmXoaBenhAnh_Load (sender, e);
				this.dgBenhNhan.Visible = false;
				this.dgXoaBA.Visible = false;
				this.dgAll.Visible = true;
				this.btXoa.Visible = true;
				goto L_0245;
				
			L_010A:
				
				{
				}
				this.dgAll.Visible = false;
				theSqlDataAdapter = new SqlDataAdapter (this.sqlSelect, this.Cons);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, "vw_ClinicalRecord_Thao");
				theSqlDataAdapter.Dispose ();
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables["vw_ClinicalRecord_Thao"].Rows.Count != 0)))
				{
					goto L_01C7;
				}
				
			L_016D:
				
				{
				}
				if (! this.rbID.Checked)
				{
					goto L_0199;
				}
				DialogResult theDialogResult2 = MessageBox.Show ("S? ID kh?ng t?n t?i trong c? s? d? li?u", "Th?ng B?o", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				this.dgXoaBA.Visible = false;
				
			L_0199:
				
				{
				}
				if (! this.rbFullName.Checked)
				{
					goto L_01C5;
				}
				DialogResult theDialogResult3 = MessageBox.Show ("T?n B?nh nh?n kh?ng t?n t?i kh?ng t?n t?i trong c? s? d? li?u", "Th?ng B?o", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				this.dgXoaBA.Visible = false;
				
			L_01C5:
				
				{
				}
				goto L_0245;
				
			L_01C7:
				
				{
				}
				this.dgXoaBA.Visible = true;
				this.btXoa.Visible = true;
				this.dgXoaBA.CaptionText = "Danh S?ch B?nh ?n.";
				this.dgXoaBA.TableStyles.Clear ();
				this.dgXoaBA.DataSource = null;
				this.dgXoaBA.DataSource = theDataSet;
				this.dgXoaBA.SetDataBinding (theDataSet, "vw_ClinicalRecord_Thao");
				this.loadDatagrid ();
				int i2 = this.dgXoaBA.TableStyles.Add (this.TblStyle);
				
			L_0245:
				return;
			}
			
			private void dgAll_VisibleChanged (object sender, EventArgs e)
			
			{
				if (! this.dgAll.Visible)
				{
					goto L_0027;
				}
				this.btXoa.Visible = true;
				this.btDeletePatient.Visible = true;
				goto L_003F;
				
			L_0027:
				
				{
				}
				this.btXoa.Visible = false;
				this.btDeletePatient.Visible = false;
				
			L_003F:
				return;
			}
			
			private void dgXoaBA_VisibleChanged (object sender, EventArgs e)
			
			{
				if (! this.dgXoaBA.Visible)
				{
					goto L_0027;
				}
				this.btXoa.Visible = true;
				this.btDeletePatient.Visible = true;
				goto L_003F;
				
			L_0027:
				
				{
				}
				this.btXoa.Visible = false;
				this.btDeletePatient.Visible = false;
				
			L_003F:
				return;
			}
			
			protected override void Dispose (bool disposing)
			
			{
				this.flag = 0;
				if (! disposing)
				{
					goto L_001D;
				}
				if (this.components == null)
				{
					goto L_001D;
				}
				this.components.Dispose ();
				
			L_001D:
				
				{
				}
				base.Dispose (disposing);
				return;
			}
			
			private void frmXoaBenhAnh_Load (object sender, EventArgs e)
			
			{
				string theString;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				string theString2;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				this.con = new SqlConnection (this.Cons);
				theString = "select * from vw_ClinicalRecord_Thao order by patISN";
				theSqlDataAdapter = new SqlDataAdapter (theString, this.con);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, "vw_ClinicalRecord_Thao");
				theSqlDataAdapter.Dispose ();
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables["vw_ClinicalRecord_Thao"].Rows.Count != 0)))
				{
					goto L_0074;
				}
				
			L_0069:
				
				{
				}
				base.Close ();
				goto L_01BD;
				
			L_0074:
				
				{
				}
				this.dgAll.CaptionText = "Danh S?ch B?nh ?n.";
				this.dgAll.TableStyles.Clear ();
				this.dgAll.DataSource = null;
				this.dgAll.DataSource = theDataSet;
				this.dgAll.SetDataBinding (theDataSet, "vw_ClinicalRecord_Thao");
				this.loadDatagrid ();
				int i2 = this.dgAll.TableStyles.Add (this.TblStyle);
				theString2 = "select * from Patients";
				theSqlDataAdapter2 = new SqlDataAdapter (theString2, this.con);
				theDataSet2 = new DataSet ();
				int i3 = theSqlDataAdapter2.Fill (theDataSet2, "Patients");
				if ((theDataSet2 != null) && ((theDataSet2.Tables.Count != 0) && (theDataSet2.Tables["Patients"].Rows.Count != 0)))
				{
					goto L_0148;
				}
				
			L_0133:
				
				{
				}
				DialogResult theDialogResult = MessageBox.Show ("Hi?n t?i ch?a c? b?nh nh?n", "L?i", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_01BD;
				
			L_0148:
				
				{
				}
				this.cboPatient.DataSource = null;
				this.cboPatient.DataSource = theDataSet2;
				this.cboPatient.DisplayMember = "Patients.patISN";
				this.dgBenhNhan.DataSource = theDataSet2;
				this.dgBenhNhan.SetDataBinding (theDataSet2, "Patients");
				this.dgBenhNhan.TableStyles.Clear ();
				this.loadDatagridBenhNhan ();
				int i4 = this.dgBenhNhan.TableStyles.Add (this.TblStyleBenhNhan);
				
			L_01BD:
				return;
			}
			
			private void ID_Validate (object sender, KeyPressEventArgs e)
			
			{
				if (! this.rbFullName.Checked)
				{
					goto L_0048;
				}
				if (! char.IsNumber (e.KeyChar))
				{
					goto L_0034;
				}
				if (e.KeyChar == '\u0008')
				{
					goto L_0034;
				}
				if (e.KeyChar == '\r')
				{
					goto L_0034;
				}
				e.Handled = true;
				
			L_0034:
				
				{
				}
				if (e.KeyChar != '\r')
				{
					goto L_0046;
				}
				this.button1_Click (sender, ((EventArgs) e));
				
			L_0046:
				
				{
				}
				goto L_0090;
				
			L_0048:
				
				{
				}
				if (! this.rbID.Checked)
				{
					goto L_0090;
				}
				if (char.IsNumber (e.KeyChar))
				{
					goto L_007C;
				}
				if (e.KeyChar == '\u0008')
				{
					goto L_007C;
				}
				if (e.KeyChar == '\r')
				{
					goto L_007C;
				}
				e.Handled = true;
				
			L_007C:
				
				{
				}
				if (e.KeyChar != '\r')
				{
					goto L_008E;
				}
				this.button1_Click (sender, ((EventArgs) e));
				
			L_008E:
				
				{
				}
				goto L_0090;
				
			L_0090:
				return;
			}
			
			private void InitializeComponent ()
			
			{
				ResourceManager theResourceManager;
				Control[] theControlArray;
				Control[] theControlArray2;
				theResourceManager = new ResourceManager (typeof (frmXoaBenhAnh));
				this.btXoa = new Button ();
				this.label2 = new Label ();
				this.dgXoaBA = new DataGrid ();
				this.groupBox2 = new GroupBox ();
				this.rbAll = new RadioButton ();
				this.rbFullName = new RadioButton ();
				this.rbID = new RadioButton ();
				this.btTim = new Button ();
				this.label15 = new Label ();
				this.txtID = new TextBox ();
				this.label14 = new Label ();
				this.dgAll = new DataGrid ();
				this.dgBenhNhan = new DataGrid ();
				this.cboPatient = new ComboBox ();
				this.button1 = new Button ();
				this.btDeletePatient = new Button ();
				((ISupportInitialize) this.dgXoaBA).BeginInit ();
				this.groupBox2.SuspendLayout ();
				((ISupportInitialize) this.dgAll).BeginInit ();
				((ISupportInitialize) this.dgBenhNhan).BeginInit ();
				base.SuspendLayout ();
				this.btXoa.FlatStyle = FlatStyle.Popup;
				this.btXoa.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btXoa.Location = new Point (575, 416);
				this.btXoa.Name = "btXoa";
				this.btXoa.Size = new System.Drawing.Size (96, 24);
				this.btXoa.TabIndex = 3;
				this.btXoa.Text = "X?a B?nh ?n";
				this.btXoa.Visible = false;
				this.btXoa.Click += new EventHandler (this.btXoa_Click);
				this.label2.Font = new System.Drawing.Font ("Verdana", 12F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label2.ForeColor = Color.MediumBlue;
				this.label2.Location = new Point (224, 16);
				this.label2.Name = "label2";
				this.label2.Size = new System.Drawing.Size (256, 23);
				this.label2.TabIndex = 4;
				this.label2.Text = "X?a B?nh ?n - B?nh Nh?n";
				this.label2.TextAlign = ContentAlignment.MiddleCenter;
				this.dgXoaBA.BackgroundColor = SystemColors.ActiveCaptionText;
				this.dgXoaBA.CaptionVisible = false;
				this.dgXoaBA.DataMember = "";
				this.dgXoaBA.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.dgXoaBA.HeaderForeColor = SystemColors.ControlText;
				this.dgXoaBA.Location = new Point (8, 144);
				this.dgXoaBA.Name = "dgXoaBA";
				this.dgXoaBA.ReadOnly = true;
				this.dgXoaBA.Size = new System.Drawing.Size (664, 264);
				this.dgXoaBA.TabIndex = 2;
				this.dgXoaBA.Visible = false;
				this.dgXoaBA.VisibleChanged += new EventHandler (this.dgXoaBA_VisibleChanged);
				theControlArray = new Control[3];
				theControlArray[0] = ((Control) this.rbAll);
				theControlArray[1] = ((Control) this.rbFullName);
				theControlArray[2] = ((Control) this.rbID);
				this.groupBox2.Controls.AddRange (theControlArray);
				this.groupBox2.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox2.Location = new Point (213, 56);
				this.groupBox2.Name = "groupBox2";
				this.groupBox2.Size = new System.Drawing.Size (264, 48);
				this.groupBox2.TabIndex = 84;
				this.groupBox2.TabStop = false;
				this.rbAll.Location = new Point (192, 16);
				this.rbAll.Name = "rbAll";
				this.rbAll.Size = new System.Drawing.Size (64, 24);
				this.rbAll.TabIndex = 73;
				this.rbAll.Text = "T?t c?";
				this.rbAll.CheckedChanged += new EventHandler (this.rbAll_CheckedChanged);
				this.rbFullName.Location = new Point (88, 16);
				this.rbFullName.Name = "rbFullName";
				this.rbFullName.Size = new System.Drawing.Size (96, 24);
				this.rbFullName.TabIndex = 72;
				this.rbFullName.Text = "H? v? T?n";
				this.rbFullName.CheckedChanged += new EventHandler (this.rbFullName_CheckedChanged);
				this.rbID.Checked = true;
				this.rbID.Location = new Point (16, 16);
				this.rbID.Name = "rbID";
				this.rbID.Size = new System.Drawing.Size (72, 24);
				this.rbID.TabIndex = 71;
				this.rbID.TabStop = true;
				this.rbID.Text = "S? ID";
				this.rbID.CheckedChanged += new EventHandler (this.rbID_CheckedChanged);
				this.btTim.FlatStyle = FlatStyle.Popup;
				this.btTim.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btTim.Location = new Point (360, 112);
				this.btTim.Name = "btTim";
				this.btTim.Size = new System.Drawing.Size (56, 23);
				this.btTim.TabIndex = 83;
				this.btTim.Text = "T?m";
				this.btTim.Click += new EventHandler (this.button1_Click);
				this.label15.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label15.Location = new Point (133, 72);
				this.label15.Name = "label15";
				this.label15.Size = new System.Drawing.Size (80, 23);
				this.label15.TabIndex = 82;
				this.label15.Text = "T?m Theo:";
				this.txtID.BorderStyle = BorderStyle.FixedSingle;
				this.txtID.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtID.Location = new Point (213, 112);
				this.txtID.Name = "txtID";
				this.txtID.Size = new System.Drawing.Size (139, 22);
				this.txtID.TabIndex = 81;
				this.txtID.Text = "";
				this.txtID.KeyPress += new KeyPressEventHandler (this.ID_Validate);
				this.label14.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label14.Location = new Point (133, 112);
				this.label14.Name = "label14";
				this.label14.TabIndex = 80;
				this.label14.Text = "T? kh?a:";
				this.dgAll.BackgroundColor = SystemColors.ActiveCaptionText;
				this.dgAll.CaptionVisible = false;
				this.dgAll.DataMember = "";
				this.dgAll.HeaderForeColor = SystemColors.ControlText;
				this.dgAll.Location = new Point (8, 144);
				this.dgAll.Name = "dgAll";
				this.dgAll.ReadOnly = true;
				this.dgAll.Size = new System.Drawing.Size (664, 264);
				this.dgAll.TabIndex = 86;
				this.dgAll.Visible = false;
				this.dgAll.VisibleChanged += new EventHandler (this.dgAll_VisibleChanged);
				this.dgBenhNhan.BackgroundColor = SystemColors.ActiveCaptionText;
				this.dgBenhNhan.CaptionVisible = false;
				this.dgBenhNhan.DataMember = "";
				this.dgBenhNhan.HeaderForeColor = SystemColors.ControlText;
				this.dgBenhNhan.Location = new Point (8, 144);
				this.dgBenhNhan.Name = "dgBenhNhan";
				this.dgBenhNhan.Size = new System.Drawing.Size (664, 264);
				this.dgBenhNhan.TabIndex = 88;
				this.dgBenhNhan.Visible = false;
				this.cboPatient.Location = new Point (400, 208);
				this.cboPatient.Name = "cboPatient";
				this.cboPatient.Size = new System.Drawing.Size (168, 22);
				this.cboPatient.TabIndex = 89;
				this.cboPatient.Visible = false;
				this.button1.FlatStyle = FlatStyle.Popup;
				this.button1.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.button1.Location = new Point (422, 111);
				this.button1.Name = "button1";
				this.button1.Size = new System.Drawing.Size (56, 24);
				this.button1.TabIndex = 91;
				this.button1.Text = "Tho?t";
				this.button1.Click += new EventHandler (this.btThoat_Click);
				this.btDeletePatient.FlatStyle = FlatStyle.Popup;
				this.btDeletePatient.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btDeletePatient.Location = new Point (456, 416);
				this.btDeletePatient.Name = "btDeletePatient";
				this.btDeletePatient.Size = new System.Drawing.Size (112, 24);
				this.btDeletePatient.TabIndex = 92;
				this.btDeletePatient.Text = "X?a B?nh Nh?n";
				this.btDeletePatient.Visible = false;
				this.btDeletePatient.Click += new EventHandler (this.btDeletePatient_Click);
				this.AutoScaleBaseSize = new System.Drawing.Size (7, 15);
				base.ClientSize = new System.Drawing.Size (678, 451);
				theControlArray2 = new Control[13];
				theControlArray2[0] = ((Control) this.btDeletePatient);
				theControlArray2[1] = ((Control) this.button1);
				theControlArray2[2] = ((Control) this.groupBox2);
				theControlArray2[3] = ((Control) this.btTim);
				theControlArray2[4] = ((Control) this.label15);
				theControlArray2[5] = ((Control) this.label2);
				theControlArray2[6] = ((Control) this.btXoa);
				theControlArray2[7] = ((Control) this.txtID);
				theControlArray2[8] = ((Control) this.label14);
				theControlArray2[9] = ((Control) this.dgXoaBA);
				theControlArray2[10] = ((Control) this.dgBenhNhan);
				theControlArray2[11] = ((Control) this.cboPatient);
				theControlArray2[12] = ((Control) this.dgAll);
				base.Controls.AddRange (theControlArray2);
				this.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
				base.Icon = ((System.Drawing.Icon) theResourceManager.GetObject ("$this.Icon"));
				base.MaximizeBox = false;
				base.MinimizeBox = false;
				base.Name = "frmXoaBenhAnh";
				base.StartPosition = FormStartPosition.CenterScreen;
				this.Text = "X?a B?nh ?n";
				base.Load += new EventHandler (this.frmXoaBenhAnh_Load);
				((ISupportInitialize) this.dgXoaBA).EndInit ();
				this.groupBox2.ResumeLayout (false);
				((ISupportInitialize) this.dgAll).EndInit ();
				((ISupportInitialize) this.dgBenhNhan).EndInit ();
				base.ResumeLayout (false);
				return;
			}
			
			public void loadAllBA ()
			
			{
				string theString;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				theString = "select * from vw_ClinicalRecord_Thao";
				theSqlDataAdapter = new SqlDataAdapter (theString, this.con);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, "vw_ClinicalRecord_Thao");
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables["vw_ClinicalRecord_Thao"].Rows.Count != 0)))
				{
					goto L_00CE;
				}
				
			L_0052:
				
				{
				}
				if (! this.rbFullName.Checked)
				{
					goto L_00AE;
				}
				this.indexPatient = this.cboPatient.FindString (this.txtID.Text);
				this.cboPatient.SelectedIndex = this.indexPatient;
				this.keyPatient = this.dgBenhNhan[this.dgBenhNhan.CurrentRowIndex, 1].ToString ();
				
			L_00AE:
				
				{
				}
				if (! this.rbID.Checked)
				{
					goto L_00CC;
				}
				this.keyPatient = this.txtID.Text;
				
			L_00CC:
				
				{
				}
				goto L_0128;
				
			L_00CE:
				
				{
				}
				this.dgAll.CaptionText = "Danh S?ch B?nh ?n.";
				this.dgAll.DataSource = theDataSet;
				this.dgAll.SetDataBinding (theDataSet, "vw_ClinicalRecord_Thao");
				this.dgAll.TableStyles.Clear ();
				this.loadDatagrid ();
				int i2 = this.dgAll.TableStyles.Add (this.TblStyle);
				
			L_0128:
				return;
			}
			
			public void loadDatagrid ()
			
			{
				DataGridTextBoxColumn theDataGridTextBoxColumn;
				DataGridTextBoxColumn theDataGridTextBoxColumn2;
				DataGridTextBoxColumn theDataGridTextBoxColumn3;
				DataGridTextBoxColumn theDataGridTextBoxColumn4;
				DataGridTextBoxColumn theDataGridTextBoxColumn5;
				DataGridTextBoxColumn theDataGridTextBoxColumn6;
				DataGridTextBoxColumn theDataGridTextBoxColumn7;
				DataGridTextBoxColumn theDataGridTextBoxColumn8;
				DataGridTextBoxColumn theDataGridTextBoxColumn9;
				DataGridTextBoxColumn theDataGridTextBoxColumn10;
				this.TblStyle = new DataGridTableStyle ();
				this.TblStyle.MappingName = "vw_ClinicalRecord_Thao";
				this.TblStyle.RowHeaderWidth = 40;
				this.TblStyle.HeaderForeColor = Color.Maroon;
				this.TblStyle.GridLineColor = Color.CornflowerBlue;
				this.TblStyle.AlternatingBackColor = Color.AliceBlue;
				theDataGridTextBoxColumn = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn.MappingName = "patISN";
				theDataGridTextBoxColumn.HeaderText = "M? b?nh nh?n";
				theDataGridTextBoxColumn.Width = 0;
				theDataGridTextBoxColumn.NullText = string.Empty;
				int i = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn));
				theDataGridTextBoxColumn2 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn2.MappingName = "clrISN";
				theDataGridTextBoxColumn2.HeaderText = "   M? b?nh ?n";
				theDataGridTextBoxColumn2.Width = 100;
				theDataGridTextBoxColumn2.NullText = string.Empty;
				int i2 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn2));
				theDataGridTextBoxColumn3 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn3.MappingName = "patName";
				theDataGridTextBoxColumn3.HeaderText = "T?n b?nh nh?n";
				theDataGridTextBoxColumn3.Width = 100;
				theDataGridTextBoxColumn3.NullText = string.Empty;
				int i3 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn3));
				theDataGridTextBoxColumn4 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn4.MappingName = "patAge";
				theDataGridTextBoxColumn4.HeaderText = "    ?? tu?i";
				theDataGridTextBoxColumn4.Width = 80;
				theDataGridTextBoxColumn4.NullText = string.Empty;
				int i4 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn4));
				theDataGridTextBoxColumn5 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn5.MappingName = "patbirthdate";
				theDataGridTextBoxColumn5.HeaderText = "    Ng?y sinh";
				theDataGridTextBoxColumn5.Width = 100;
				theDataGridTextBoxColumn5.NullText = string.Empty;
				int i5 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn5));
				theDataGridTextBoxColumn6 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn6.MappingName = "clrExaminationTimes";
				theDataGridTextBoxColumn6.HeaderText = "   S? l?n kh?m";
				theDataGridTextBoxColumn6.Width = 100;
				theDataGridTextBoxColumn6.NullText = string.Empty;
				int i6 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn6));
				theDataGridTextBoxColumn7 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn7.MappingName = "clrpulse";
				theDataGridTextBoxColumn7.HeaderText = "        M?ch";
				theDataGridTextBoxColumn7.Width = 100;
				theDataGridTextBoxColumn7.NullText = string.Empty;
				int i7 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn7));
				theDataGridTextBoxColumn8 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn8.MappingName = "clrTemperature";
				theDataGridTextBoxColumn8.HeaderText = "     Nhi?t ??";
				theDataGridTextBoxColumn8.Width = 100;
				theDataGridTextBoxColumn8.NullText = string.Empty;
				int i8 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn8));
				theDataGridTextBoxColumn9 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn9.MappingName = "clrBloodpressure";
				theDataGridTextBoxColumn9.HeaderText = "      Huy?t ?p";
				theDataGridTextBoxColumn9.Width = 100;
				theDataGridTextBoxColumn9.NullText = string.Empty;
				int i9 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn9));
				theDataGridTextBoxColumn10 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn10.MappingName = "clrWeigh";
				theDataGridTextBoxColumn10.HeaderText = "      C?n N?ng";
				theDataGridTextBoxColumn10.Width = 100;
				theDataGridTextBoxColumn10.NullText = string.Empty;
				int i10 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn10));
				this.TblStyle.ReadOnly = true;
				return;
			}
			
			public void loadDatagridBenhNhan ()
			
			{
				DataGridTextBoxColumn theDataGridTextBoxColumn;
				DataGridTextBoxColumn theDataGridTextBoxColumn2;
				this.TblStyleBenhNhan = new DataGridTableStyle ();
				this.TblStyleBenhNhan.MappingName = "Patients";
				this.TblStyleBenhNhan.RowHeaderWidth = 40;
				this.TblStyle.HeaderForeColor = Color.Maroon;
				this.TblStyle.GridLineColor = Color.CornflowerBlue;
				this.TblStyleBenhNhan.AlternatingBackColor = Color.AliceBlue;
				theDataGridTextBoxColumn = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn.MappingName = "patISN";
				theDataGridTextBoxColumn.HeaderText = "M? b?nh nh?n";
				theDataGridTextBoxColumn.Width = 0;
				theDataGridTextBoxColumn.NullText = string.Empty;
				int i = this.TblStyleBenhNhan.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn));
				theDataGridTextBoxColumn2 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn2.MappingName = "patID";
				theDataGridTextBoxColumn2.HeaderText = "S? ID";
				theDataGridTextBoxColumn2.Width = 100;
				theDataGridTextBoxColumn2.NullText = string.Empty;
				int i2 = this.TblStyleBenhNhan.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn2));
				return;
			}
			
			private static void Main ()
			
			{
				Application.Run (((Form) new frmXoaBenhAnh ()));
				return;
			}
			
			private void rbAll_CheckedChanged (object sender, EventArgs e)
			
			{
				if (! this.rbAll.Checked)
				{
					goto L_0015;
				}
				this.button1_Click (sender, e);
				
			L_0015:
				return;
			}
			
			private void rbFullName_CheckedChanged (object sender, EventArgs e)
			
			{
				this.dgAll.Visible = false;
				return;
			}
			
			private void rbID_CheckedChanged (object sender, EventArgs e)
			
			{
				this.dgAll.Visible = false;
				return;
			}
			
		#endregion
	}
	
}

